import React, { Component } from 'react'
import { BrowserRouter, Route, Switch, Redirect } from 'react-router-dom'
import Home from './pages/Home'
import Login from './pages/User/Login'
import Register from './pages/User/Register'
import Forgot from './pages/User/Forgot'
export default class App extends Component {
    render() {
        return (
            <BrowserRouter>
                <Switch>
                    <Route path="/home" component={Home}/>
                    <Route path="/user/login" component={Login}/>
                    <Route path="/user/register" component={Register}/>
                    <Route path="/user/forgot" component={Forgot}/>
                    <Redirect to="/home" />
                </Switch>
            </BrowserRouter>
        )
    }
}
